package com.smart.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 商品分类  导航作用  商品类型 筛选搜索作用
 */
@ApiModel(value = "商品分类  导航作用  商品类型 筛选搜索作用")
@Data
@TableName(value = "product_category")
public class ProductCategory {
    @TableId(value = "category_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "")
    private Integer categoryId;

    /**
     * 上级分类的编号：0表示一级分类
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "上级分类的编号：0表示一级分类")
    private Long parentId;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 分类级别：0->1级；1->2级
     */
    @TableField(value = "`level`")
    @ApiModelProperty(value = "分类级别：0->1级；1->2级")
    private Integer level;

    /**
     * 商品单位
     */
    @TableField(value = "unit")
    @ApiModelProperty(value = "商品单位")
    private String unit;

    /**
     * 是否显示在导航栏(移动端)：0->不显示；1->显示
     */
    @TableField(value = "nav")
    @ApiModelProperty(value = "是否显示在导航栏(移动端)：0->不显示；1->显示")
    private Integer nav;

    /**
     * 0:隐藏 1:显示
     */
    @TableField(value = "is_show")
    @ApiModelProperty(value = "0:隐藏 1:显示")
    private Boolean isShow;

    /**
     * 是否删除 0表示删除  1表示正常
     */
    @TableField(value = "is_del")
    @ApiModelProperty(value = "是否删除 0表示删除  1表示正常")
    private Integer isDel;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 图标
     */
    @TableField(value = "icon")
    @ApiModelProperty(value = "图标")
    private String icon;

    /**
     * 关键字
     */
    @TableField(value = "keywords")
    @ApiModelProperty(value = "关键字")
    private String keywords;

    /**
     * 描述
     */
    @TableField(value = "description")
    @ApiModelProperty(value = "描述")
    private String description;

    public static final String COL_CATEGORY_ID = "category_id";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_NAME = "name";

    public static final String COL_LEVEL = "level";

    public static final String COL_UNIT = "unit";

    public static final String COL_NAV = "nav";

    public static final String COL_IS_SHOW = "is_show";

    public static final String COL_IS_DEL = "is_del";

    public static final String COL_SORT = "sort";

    public static final String COL_ICON = "icon";

    public static final String COL_KEYWORDS = "keywords";

    public static final String COL_DESCRIPTION = "description";
}